package cn.gson.fengboot.model.pojos;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class QproductdetailQmodeldetailsPK implements Serializable {
    private int prodetailId;
    private int modetId;

    @Column(name = "prodetail_id")
    @Id
    public int getProdetailId() {
        return prodetailId;
    }

    public void setProdetailId(int prodetailId) {
        this.prodetailId = prodetailId;
    }

    @Column(name = "modet_id")
    @Id
    public int getModetId() {
        return modetId;
    }

    public void setModetId(int modetId) {
        this.modetId = modetId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QproductdetailQmodeldetailsPK that = (QproductdetailQmodeldetailsPK) o;
        return prodetailId == that.prodetailId &&
                modetId == that.modetId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(prodetailId, modetId);
    }
}
